package cn.com.fattiger.framework.cms.admin.common.service;



/**
 * Created by Administrator on 2016/1/8.
 */
public interface RedisService {
   // public void set(String key,String value ,int seconds ) ;
	public Object get(String key ) ;
	public byte[] getByte(String key ) ;
	public void del(String key);
	public void hdel(String key,String name);
	public void set(String key ,byte[] bs ,int seconds );
	public void set(String key ,Object value,int seconds);
	public long incr(String key);
	public void lset (String key,Object value);
	
	public Object  lpop(String key);
	
	public void hset(String key ,String name ,byte[] bs  );
	public void hset(String key ,String name ,byte[] bs,Long seconds  );
	
	public void hashSet(String key ,String name ,Object value,Long seconds  );
	
	public void hashSet(String key,String hashKey,Object value);
	public Object hashGet(String key,String hashKey);
	/*public List<Object>  hashGet(String key);
	public List<Object> multiGet(String key,String hashKey);*/
	
	public void setExpire(String key,long seconds);
	public long lsize(String key) ;
	public void setnx(String key ,String value);

	public byte[] hget(String key ,String propertyName);
	
}
